package cn.edu.sziit.bbs.dao;

import cn.edu.sziit.bbs.model.User;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface UserMapper {
    int deleteByPrimaryKey(Integer userId);

    int insert(User record);

    int insertSelective(User record);

    User selectByPrimaryKey(Integer userId);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);

    User selectByUsername(String userName);

    List<User> selectAll();

    List<User> selectAllByUserName(String userName);
}